<?php 
use Zend\Session\Container;
$SESSION = new Container('user');
?>
<!DOCTYPE html>
<html>

<body>

<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

	<section>
		<!--INNER MAIN TITLE SECTION START-->

		<h2 class="inner-main-title pr-title">login</h2>
		
		<!--INNER MAIN TITLE SECTION END-->
		
		<!--CONTENT MAIN SECTION START-->
		
	  <div class="content-main-sec">
	  
		  <!--INNER CONTENT LEFT MENU SECTION START-->  
		  
		  <ul class="inner-left-menu-sec">
			<?php include('cleftmenu.phtml');?>
		  </ul>
		  
		  <!--INNER CONTENT LEFT MENU SECTION END-->
		  
		  <!--INNER CONTENT RIGHT SECTION START-->
		  
		<article class="inner-cont-right-sec">
		  
			<h1 class="inner-cont-title">Usage Details</h1>
		<form method="post">
			<input type="hidden" name="data" id="data" value="2">
		</form>
			<!--FILRER BY SECTION START-->
		  
			<div class="clear"></div><br/><br/><br/>
			<?php 
			$csv_filename = $SESSION['uname']."_".date("Y-m-d",time()).".csv"; 
			if(file_exists($uploadPath.$csv_filename)){

			?>
			<center>
			<h4>
			<a  target="_blank" href="<?php echo $this->url('csvdata', array('action' => 'csvdata'));?>" >Create recent calls history file</a>
			</h4>
			</center><br/>
			<center>
			<h4> 
			<a href="<?php echo $this->basePath(); ?>/CsvData/<?php echo $csv_filename; ?>">Download call details history file</a>
			<?php } ?>
			</h4>
			</center><br/>
			<?php if(!file_exists($uploadPath.$csv_filename)){ ?>
			<center>
			<h4>
			<a  target="_blank" href="<?php echo $this->url('csvdata', array('action' => 'csvdata'));?>" >Create recent calls history file</a>
			</h4>
			</center>
			<? } ?>
		  
			<!--FILRER BY SECTION END-->
	  
			<div class="clear"></div>
	  </article>
	  
	  <!--INNER CONTENT RIGHT SECTION END-->
	  
	  </div>
	  
	  <!--CONTENT MAIN SECTION END-->
	  
	  <div class="clear"></div>
	  
	  <!--CLIENTS AREA SECTION START-->
	  
	  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
		<h3 class="otg-title">Trusted. Safe. Reliable.</h3>
	  </aside>
	  
	  <!--CLIENTS AREA SECTION END-->
	  
	  <div class="clear"></div>
	  
	</section>
	
</div>

<!--CONTENT SECTION END--> 

</body>
</html>
